home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / mailx.z / mailx
Text File  |  1998-10-20  |  68KB  |  1,255 lines

  1.  
  2.  
  3.  
  4. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      mailx - send and receive mail
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      Send Mode:
  13.  
  14.      mmmmaaaaiiiillllxxxx [ ----vvvv ] [ ----ssss _s_u_b_j_e_c_t ] [ _a_d_d_r_e_s_s...  ]
  15.  
  16.      Receive Mode:
  17.  
  18.      mmmmaaaaiiiillllxxxx ----eeee
  19.      mmmmaaaaiiiillllxxxx [ ----HHHHiiiiNNNNnnnn ] [ ----FFFF ] [ ----uuuu _u_s_e_r ]
  20.      mmmmaaaaiiiillllxxxx ----ffff [ ----HHHHiiiiNNNNnnnn ] [ ----FFFF ] [ _f_i_l_e ]
  21.  
  22. IIIINNNNTTTTRRRROOOODDDDUUUUCCCCTTTTIIIIOOOONNNN
  23.      _m_a_i_l_x is an interactive mail processing system, which has a command
  24.      syntax reminiscent of _e_d with lines replaced by messages.
  25.  
  26.      Send Mode can be used by applications or users to send messages from the
  27.      text in standard input.  Receive Mode is more oriented to interactive
  28.      users.   Mail can be  read and sent in this interactive mode.
  29.  
  30.      When reading mail, _m_a_i_l_x provides commands to facilitate saving, deleting
  31.      and responding to messages. When sending mail, _m_a_i_l_x allows editing,
  32.      reviewing and other modification of  the message as it is entered.
  33.  
  34.      Incoming mail is stored in one or more unspecified locations for each
  35.      user, collectively called the system mailbox for that user.  When _m_a_i_l_x
  36.      is invoked in Receive Mode, the system mailbox is the default place to
  37.      find them.  As messages are read, they will be marked to be moved to a
  38.      secondary file for storage, unless specific action is taken.  This
  39.      secondary file is called the mmmmbbbbooooxxxx and is normally located in the HHHHOOOOMMMMEEEE
  40.      directory of the user.  When the ----ffff option is used to read mail messages
  41.      from secondary files, messages will be retained in those files unless
  42.      specifically removed.  All three of these locations system mailbox, mmmmbbbbooooxxxx
  43.      and secondary file are referred to in this section as simply
  44.      ``mailboxes,'' unless more specific identification is required.
  45.  
  46.      _m_a_i_l_x conforms to the X/Open _C_o_m_m_a_n_d_s _a_n_d _U_t_i_l_i_t_i_e_s _S_p_e_c_i_f_i_c_a_t_i_o_n_s _I_s_s_u_e
  47.      _4, _V_e_r_s_i_o_n _2 document.
  48.  
  49. OOOOPPPPTTTTIIIIOOOONNNNSSSS
  50.      ----eeee   Test  for the presence of mail in the system mailbox.  The _m_a_i_l_x
  51.           utility will write nothing and exit with a successful return code if
  52.           there is mail to read.
  53.  
  54.      ----ffff   Read messages from the file named by the _f_i_l_e operand instead of the
  55.           system mailbox.
  56.  
  57.      ----FFFF   Record the message in a file named after the first recipient.  The
  58.           name is the login-name portion of the address found first on the To:
  59.           line in the mail header. Overrides the rrrreeeeccccoooorrrrdddd variable, if set.
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  71.  
  72.  
  73.  
  74.      ----HHHH   Write a header summary only.
  75.  
  76.      ----vvvv   flag puts _m_a_i_l_x into verbose mode; the details of delivery are
  77.           displayed on the users terminal.
  78.  
  79.      ----iiii   flag causes tty interrupt signals to be ignored. This is
  80.           particularly useful when using _m_a_i_l_x on noisy phone lines.
  81.  
  82.      ----nnnn   flag inhibits the reading of /usr/lib/Mail.rc.
  83.  
  84.      ----NNNN   Do not write an initial header summary.
  85.  
  86.      ----uuuu   Read the system mailbox of the login name _u_s_e_r. This will only be
  87.           successful if the invoking user has the appropriate privileges to
  88.           read the system mailbox of that user.
  89.  
  90.      _S_e_n_d_i_n_g _m_a_i_l.  To send a message to one or more other people, _m_a_i_l_x can
  91.      be invoked with arguments which are the names of people to send to.  You
  92.      are then expected to type in your message, followed by an EOT (control-D)
  93.      at the beginning of a line.  A subject may be specified on the command
  94.      line by using the ----ssss flag. (Only the first argument after the ----ssss flag is
  95.      used as a subject; be careful to quote subjects containing spaces.)  The
  96.      section below, labeled _R_e_p_l_y_i_n_g _t_o _o_r _o_r_i_g_i_n_a_t_i_n_g _m_a_i_l, describes some
  97.      features of _m_a_i_l_x available to help you compose your letter.
  98.  
  99.      _R_e_a_d_i_n_g _m_a_i_l.  In normal usage _m_a_i_l_x is given no arguments.  It checks
  100.      your mail out of your system mailbox, then prints out a one line summary
  101.      of each message there.  The current message is initially the first
  102.      message (numbered 1) and can be printed using the pppprrrriiiinnnntttt command (which
  103.      can be abbreviated pppp).  You can move among the messages much as you move
  104.      between lines in _e_d, with the commands `+' and `-' moving backwards and
  105.      forwards, and simple numbers.
  106.  
  107.      _D_i_s_p_o_s_i_n_g _o_f _m_a_i_l.  After examining a message you can ddddeeeelllleeeetttteeee (dddd) the
  108.      message or rrrreeeeppppllllyyyy (rrrr) to it.  Deletion causes the _m_a_i_l_x program to forget
  109.      about the message.  This is not irreversible; the message can be
  110.      uuuunnnnddddeeeelllleeeetttteeeedddd (uuuu) by giving its number, or the _m_a_i_l_x session can be aborted
  111.      by giving the eeeexxxxiiiitttt (xxxx) command.  Deleted messages will, however, usually
  112.      disappear never to be seen again.
  113.  
  114.      _S_p_e_c_i_f_y_i_n_g _m_e_s_s_a_g_e_s.  Commands such as pppprrrriiiinnnntttt ddddeeeelllleeeetttteeee and ffffrrrroooommmm can be given
  115.      a list of messages as an argument in order to apply to a number of
  116.      messages at once.  This list of messages can be specified in one of three
  117.      mutually exclusive ways:
  118.  
  119.      First, messages may be specified by message number.  Thus ``delete 1 2''
  120.      deletes messages 1 and 2, while ``delete 1-5'' deletes messages 1 through
  121.      5.  In conjunction with message numbers, the following special names may
  122.      also be used:  The special name `^' addresses the first message, and `$'
  123.      addresses the last message.
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  137.  
  138.  
  139.  
  140.      Second, messages may be specified by sender's name, sender's name
  141.      substring or subject substring.  You may supply a list of whitespace
  142.      separated message senders' names and/or message senders' names substrings
  143.      and/or message subject substrings to commands accepting message lists.  A
  144.      message sender's name is a string of characters which must begin with an
  145.      alphabetic character, and must match exactly the sender's name in the
  146.      target message.  A message sender's name substring is a `?' character
  147.      immediately followed (no whitespace) by a string of characters and
  148.      specifies all messages with a sender's name containing the character
  149.      string as a substring.  A message subject is a `/' character immediately
  150.      followed (no whitespace) by a string of characters and specifies all
  151.      messages with a subject line containing the character string as a
  152.      substring.  Examples: ``from foo'' lists all messages from ``foo''
  153.      exactly, while ``from /foo'' lists all messages with substring ``foo'' in
  154.      their subject lines and ``from ?foo'' lists all messages with substring
  155.      foo in their senders' names.
  156.  
  157.      Third, the special name `*' can be used to address all messages. Thus the
  158.      command ttttoooopppp which prints the first few lines of a message could be used
  159.      as ``top *'' to print the first few lines of all messages.
  160.  
  161.      _R_e_p_l_y_i_n_g _t_o _o_r _o_r_i_g_i_n_a_t_i_n_g _m_a_i_l.  You can use the rrrreeeeppppllllyyyy command to set up
  162.      a response to a message, sending it back to the person who it was from.
  163.      Text you then type in, up to an end-of-file, defines the contents of the
  164.      message.  While you are composing a message, _m_a_i_l_x treats lines beginning
  165.      with the character `~' specially.  For instance, typing ``~m'' (alone on
  166.      a line) will place a copy of the current message into the response right
  167.      shifting it by a tabstop.  Other escapes will set up subject fields, add
  168.      and delete recipients to the message and allow you to escape to an editor
  169.      to revise the message or to a shell to run some commands.  (These options
  170.      are given in the summary below.)
  171.  
  172.      _I_n_c_o_r_p_o_r_a_t_i_n_g _n_e_w _m_a_i_l.  You can read new mail which has arrived during
  173.      the session by using the ffffoooollllddddeeeerrrr command to reread your system mailbox.  A
  174.      convenient way to do this is to type the command ``folder %'' or
  175.      ``fo %''.  This will have the same effect as typing the qqqquuuuiiiitttt command to
  176.      end the session (see below) and then re-invoking _m_a_i_l_x with no arguments.
  177.  
  178.      _E_n_d_i_n_g _a _m_a_i_l _p_r_o_c_e_s_s_i_n_g _s_e_s_s_i_o_n.  You can end a _m_a_i_l_x session with the
  179.      qqqquuuuiiiitttt (qqqq) or eeeexxxxiiiitttt (xxxx) commands.  If you use the qqqquuuuiiiitttt command, messages
  180.      which have been examined will be moved to your _m_b_o_x file, messages which
  181.      have been deleted are discarded, and unexamined messages are copied back
  182.      to your system mailbox.  If you have used the ----ffff option to read in the
  183.      contents of your _m_b_o_x (or other file) for processing; when you qqqquuuuiiiitttt,
  184.      _m_a_i_l_x writes undeleted messages back to this file.  In the event that
  185.      _m_a_i_l_x cannot rewrite _m_b_o_x (or other file) to write back messages, _m_a_i_l_x
  186.      will print a message indicating the trouble and will not exit.  This
  187.      gives you the option of trying to set things right.  If things cannot be
  188.      set right, you can escape _m_a_i_l_x by using the eeeexxxxiiiitttt command described
  189.      below.
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  203.  
  204.  
  205.  
  206.      If you use the eeeexxxxiiiitttt command, _m_a_i_l_x exits without making any modifications
  207.      to the mail file.  Deleted messages will not be discarded.
  208.  
  209.      _P_e_r_s_o_n_a_l _a_n_d _s_y_s_t_e_m_w_i_d_e _d_i_s_t_r_i_b_u_t_i_o_n _l_i_s_t_s.  It is also possible to
  210.      create a personal distribution lists so that, for instance, you can send
  211.      mail to ``cohorts'' and have it go to a group of people.  Such lists can
  212.      be defined by placing a line like
  213.  
  214.           alias cohorts bill ozalp jkf mark kridle@ucbcory
  215.  
  216.      in the file .mailrc in your home directory.  The current list of such
  217.      aliases can be displayed with the aaaalllliiiiaaaassss ((((aaaa)))) command in _m_a_i_l_x.  System
  218.      wide distribution lists can be created by editing /usr/lib/Mail.rc (which
  219.      may contain other _m_a_i_l_x commands such as set).  An alias of the form
  220.  
  221.           alias bob sauron!bob
  222.  
  223.      will be ignored on the sauron system so that the same /usr/lib/Mail.rc or
  224.      ~/.mailrc file may be used on several machines with correct behavior.
  225.  
  226.      You may include a pathname in the distribution list, and _m_a_i_l_x will
  227.      record outgoing messages in that file.  It is preferable to place
  228.      pathnames and folders in the ``Bcc:'' list, to prevent recipients from
  229.      replying to a nonexistent filename.
  230.  
  231.      _F_o_r_w_a_r_d_i_n_g _m_a_i_l.  Forwarding of mail is done via the ._f_o_r_w_a_r_d file
  232.      mechanism of the _s_e_n_d_m_a_i_l(1M) program.  Please see the _s_e_n_d_m_a_i_l(1M)
  233.      manual page for details.
  234.  
  235.      _S_i_g_n_a_t_u_r_e_s.  A signature line (or lines) may be automatically appended to
  236.      the end of all outgoing letters by placing the text in the file
  237.      .lsignature, .rsignature, or .signature in your home directory.  The file
  238.      .lsignature is used for local mail, that is the recipients specified do
  239.      not have `!' or `@' in their names (prior to aliasing) and the file
  240.      .rsignature is used for remote mail.  If the appropriate one of these
  241.      does not exist, .signature is used for compatibility with previous
  242.      versions of _m_a_i_l_x.
  243.  
  244.      _m_a_i_l_x has a number of options which can be set in the ._m_a_i_l_r_c file to
  245.      alter its behavior; thus ``set askcc'' enables the ``askcc'' feature.
  246.      (These options are summarized below.)
  247.  
  248. SSSSUUUUMMMMMMMMAAAARRRRYYYY
  249.      Each command is typed on a line by itself, and may take arguments
  250.      following the command word.  The command need not be typed in its
  251.      entirety - the first command which matches the typed prefix is used.  For
  252.      commands which take message lists as arguments, if no message list is
  253.      given, then the next message forward which satisfies the command's
  254.      requirements is used.  If there are no messages forward of the current
  255.      message, the search proceeds backwards, and if there are no good messages
  256.      at all, _m_a_i_l_x types ``No applicable messages'' and aborts the command.
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  269.  
  270.  
  271.  
  272.      !!!!           Executes the UNIX shell command which follows.
  273.  
  274.      ----           Goes to the previous message and prints it out.
  275.  
  276.      ====           Prints the current message number.
  277.  
  278.      ????           If the qqqqmmmmaaaarrrrkkkkiiiisssshhhheeeellllpppp option is set (see below), this is a
  279.                  synonym for the hhhheeeellllpppp command.  Otherwise, ???? indicates the
  280.                  start of a sender's name substring message list (see
  281.                  ``Specifying messages'' above).
  282.  
  283.      MMMMoooorrrreeee        (MMMM) Like PPPPrrrriiiinnnntttt but invokes your pager.
  284.  
  285.      NNNNeeeewwww         (NNNN) Identical to the uuuunnnnrrrreeeeaaaadddd command.
  286.  
  287.      PPPPaaaaggggeeee        (PPPPaaaa) A synonym for MMMMoooorrrreeee....
  288.  
  289.      PPPPrrrriiiinnnntttt       (PPPP) Like pppprrrriiiinnnntttt but also prints out ignored header fields. See
  290.                  also pppprrrriiiinnnntttt and iiiiggggnnnnoooorrrreeee....
  291.  
  292.      RRRReeeeppppllllyyyy       (RRRR) Reply to originator. Does not reply to other recipients
  293.                  of the original message.
  294.  
  295.      RRRReeeessssppppoooonnnndddd     (RRRReeeessss) A synonym for RRRReeeeppppllllyyyy
  296.  
  297.      TTTTyyyyppppeeee        (TTTT) Identical to the PPPPrrrriiiinnnntttt command.
  298.  
  299.      UUUUnnnnrrrreeeeaaaadddd      (UUUU) Identical to the uuuunnnnrrrreeeeaaaadddd command.
  300.  
  301.      aaaalllliiiiaaaassss       (aaaa) With no arguments, prints out all currently-defined
  302.                  aliases.  With one argument, prints out that alias.  With
  303.                  more than one argument, creates an new or changes an on old
  304.                  alias.
  305.  
  306.      aaaalllltttteeeerrrrnnnnaaaatttteeeessss  (aaaalllltttt) The aaaalllltttteeeerrrrnnnnaaaatttteeeessss command is useful if you have accounts
  307.                  on several machines.  It can be used to inform _m_a_i_l_x that the
  308.                  listed addresses are really you. When you rrrreeeeppppllllyyyy to messages,
  309.                  _m_a_i_l_x will not send a copy of the message to any of the
  310.                  addresses listed on the _a_l_t_e_r_n_a_t_e_s list. If the aaaalllltttteeeerrrrnnnnaaaatttteeeessss
  311.                  command is given with no argument, the current set of
  312.                  alternate names is displayed.
  313.  
  314.      cccchhhhddddiiiirrrr       (ccccdddd) Changes the user's working directory to that specified,
  315.                  if given. If no directory is given, then changes to the
  316.                  contents of _HHHH_OOOO_MMMM_EEEE will be used.
  317.  
  318.      ccccooooppppyyyy        (cccc) The ccccooooppppyyyy command does the same thing that ssssaaaavvvveeee does,
  319.                  except that it does not mark the messages it is used on for
  320.                  deletion when you quit.
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  335.  
  336.  
  337.  
  338.      CCCCooooppppyyyy        (CCCC) The CCCCooooppppyyyy command does the same thing that ccccooooppppyyyy does,
  339.                  except that it uses the file named from the author of the
  340.                  message to be saved.
  341.  
  342.      ddddeeeelllleeeetttteeee      (dddd) Takes a list of messages as argument and marks them all
  343.                  as deleted.  Deleted messages will not be saved in _m_b_o_x, nor
  344.                  will they be available for most other commands.
  345.  
  346.      ddddiiiissssccccaaaarrrrdddd     (ddddiiii) A synonym for iiiiggggnnnnoooorrrreeee (iiiigggg).
  347.  
  348.      ddddpppp          (also ddddtttt) Deletes the current message and prints the next
  349.                  message.  If there is no next message, _m_a_i_l_x says ``at EOF.''
  350.  
  351.      eeeecccchhhhoooo        (eeeecccc) Takes a string and echos it to standard output.
  352.  
  353.      eeeeddddiiiitttt        (eeee) Takes a list of messages and points the text editor at
  354.                  each one in turn.  On return from the editor, the message is
  355.                  read back in.
  356.  
  357.      eeeexxxxiiiitttt        (eeeexxxx or xxxx) Effects an immediate return to the Shell without
  358.                  modifying the user's system mailbox, his _m_b_o_x file, or his
  359.                  edit file in ----ffff.
  360.  
  361.      ffffiiiilllleeee        (ffffiiii) The same as ffffoooollllddddeeeerrrr.
  362.  
  363.      ffffoooollllddddeeeerrrr      (ffffoooolllldddd) The ffffoooollllddddeeeerrrr command switches to a new mail file or
  364.                  folder. With no arguments, it tells you which file you are
  365.                  currently reading.  If you give it an argument, it will write
  366.                  out changes (such as deletions) you have made in the current
  367.                  file and read in the new file. Some special conventions are
  368.                  recognized for the name.  @ means the current file in read-
  369.                  only mode, $ means the current file, in read/write mode if
  370.                  possible, # means the previous file, % means your system
  371.                  mailbox, %user means user's system mailbox, & means your
  372.                  ~/mbox file, and +folder means a file in your folder
  373.                  directory.
  374.  
  375.                  Issuing the command ``folder %'' while you are reading your
  376.                  system mailbox is a convenient way to incorporate new mail
  377.                  which has arrived during the session.
  378.  
  379.      ffffoooollllddddeeeerrrrssss     List the names of the folders in your folder directory.
  380.  
  381.      ffffoooolllllllloooowwwwuuuupppp    (ffffoooo) Respond to a message, recording the response in a file
  382.                  whose name is derived from the author of the message.
  383.                  Overrides the rrrreeeeccccoooorrrrdddd variable, if set.  See also the ssssaaaavvvveeee and
  384.                  ccccooooppppyyyy commands and oooouuuuttttffffoooollllddddeeeerrrr....
  385.  
  386.      FFFFoooolllllllloooowwwwuuuupppp    (FFFF) Respond to the first message in the _m_s_g_l_i_s_t, sending the
  387.                  message to the author of each message in the _m_s_g_l_i_s_t. The
  388.                  subject line is taken from the first message and the response
  389.                  is recorded in a file whose name is derived from the author
  390.  
  391.  
  392.  
  393.                                                                         PPPPaaaaggggeeee 6666
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  401.  
  402.  
  403.  
  404.                  of the first message. See also the Save and Copy commands and
  405.                  oooouuuuttttffffoooollllddddeeeerrrr....
  406.  
  407.      ffffrrrroooommmm        (ffff) Takes a list of messages and prints their summary lines.
  408.                  See the _S_p_e_c_i_f_y_i_n_g _m_e_s_s_a_g_e_s section above for examples of how
  409.                  to use this command to list only the messages from a
  410.                  particular person, or about a particular subject.
  411.  
  412.      ggggrrrroooouuuupppp       (gggg) A synonym for aaaalllliiiiaaaassss....
  413.  
  414.      hhhhdddd          Lists the message summary lines of all deleted messages.
  415.                  These are the messages that have been deleted by the ddddeeeelllleeeetttteeee
  416.                  command, but that have not yet been removed from the mailbox.
  417.                  These messages may be undeleted by use of the uuuunnnnddddeeeelllleeeetttteeee
  418.                  command.
  419.  
  420.      hhhheeeeaaaaddddeeeerrrrssss     (hhhh) Lists the current group of message summary lines
  421.                  (historically called "headers").  Summary lines are grouped
  422.                  and displayed by windowfuls (as many lines as will fit in the
  423.                  window).  If there are more summary lines than will fit in
  424.                  the current window, the zzzz command can be used to scroll
  425.                  through multiple summary line groups.
  426.  
  427.      hhhheeeellllpppp        (hhhheeeellll) Prints a brief summary of commands.
  428.  
  429.      hhhhoooolllldddd        (hhhhoooo, also pppprrrreeeesssseeeerrrrvvvveeee (pppprrrreeee)) Takes a message list and marks each
  430.                  message therein to be saved in the user's system mailbox
  431.                  instead of in _m_b_o_x.  Does not override the ddddeeeelllleeeetttteeee command.
  432.  
  433.      iiiiggggnnnnoooorrrreeee      (iiiigggg) Add the list of header fields named to the _i_g_n_o_r_e_d _l_i_s_t.
  434.                  Header fields in the ignore list are not printed on your
  435.                  terminal when you print a message. This command is very handy
  436.                  for suppression of certain machine-generated header fields.
  437.                  The TTTTyyyyppppeeee and PPPPrrrriiiinnnntttt commands can be used to print a message in
  438.                  its entirety, including ignored fields. If iiiiggggnnnnoooorrrreeee is executed
  439.                  with no arguments, it lists the current set of ignored
  440.                  fields.
  441.  
  442.      lllliiiisssstttt        (lllliiii) Prints the list of all _m_a_i_l_x commands.
  443.  
  444.      mmmmaaaaiiiillll        (mmmm) Takes as argument login names and distribution group
  445.                  names and sends mail to those people.
  446.  
  447.      mmmmbbbbooooxxxx        (mmmmbbbb) Indicate that a list of messages be sent to _m_b_o_x in your
  448.                  home directory when you quit. This is the default action for
  449.                  messages if you do _n_o_t have the _h_o_l_d option set.  See MMMMBBBBOOOOXXXX....
  450.  
  451.      mmmmoooorrrreeee        (mmmmoooo) Like pppprrrriiiinnnntttt but invokes your pager.
  452.  
  453.      nnnneeeewwww         Identical to the uuuunnnnrrrreeeeaaaadddd command
  454.  
  455.  
  456.  
  457.  
  458.  
  459.                                                                         PPPPaaaaggggeeee 7777
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  467.  
  468.  
  469.  
  470.      nnnneeeexxxxtttt        (nnnn like ++++ or CR) Goes to the next message in sequence and
  471.                  types it.  With an argument list, types the next matching
  472.                  message.
  473.  
  474.      ppppaaaaggggeeee        (ppppaaaa) A synonym for mmmmoooorrrreeee....
  475.  
  476.      _pppp_iiii_pppp_eeee or _||||   (ppppiiii) Pipe the messages through the given _c_o_m_m_a_n_d by invoking
  477.                  the command interpreter specified by _S_H_E_L_L with two
  478.                  arguments: cccc and _c_o_m_m_a_n_d. (See also _s_h (_----_cccc.)  The command
  479.                  must be given as a single argument.  Quoting, described
  480.                  previously, can be used to accomplish this.  If no arguments
  481.                  are given, the current message will be piped through the
  482.                  command specified by the value of the ccccmmmmdddd variable. If the
  483.                  ppppaaaaggggeeee variable is set, a form-feed character will be inserted
  484.                  after each message.
  485.  
  486.      pppprrrreeeesssseeeerrrrvvvveeee    (pppprrrreeee) A synonym for hhhhoooolllldddd.
  487.  
  488.      _pppp_rrrr_iiii_nnnn_tttt or _tttt_yyyy_pppp_eeee
  489.                  (pppp or tttt) Takes a message list and types out each message to
  490.                  standard output.  If ccccrrrrtttt is set, the messages longer than the
  491.                  number of lines specified by the ccccrrrrtttt variable will be paged
  492.                  through the command specified by the PPPPAAAAGGGGEEEERRRR environment
  493.                  variable.
  494.  
  495.      qqqquuuuiiiitttt        (qqqq) Terminates the session, saving all undeleted, unsaved
  496.                  messages in the user's _m_b_o_x file in his login directory,
  497.                  preserving all messages marked with hhhhoooolllldddd or pppprrrreeeesssseeeerrrrvvvveeee or never
  498.                  referenced in his system mailbox, and removing all other
  499.                  messages from his system mailbox.  If new mail has arrived
  500.                  during the session, the message ``You have new mail'' is
  501.                  given.  If given while editing a mailbox file with the ----ffff
  502.                  flag, then the edit file is rewritten.  A return to the Shell
  503.                  is effected, unless the rewrite of edit file fails, in which
  504.                  case the user can escape with the eeeexxxxiiiitttt command.
  505.  
  506.      rrrreeeeppppllllyyyy       (rrrr) A synonym for RRRReeeeppppllllyyyy.
  507.  
  508.      rrrreeeeppppllllyyyyaaaallllllll    (rrrraaaa or RRRRAAAA) Takes a message list and sends mail to the sender
  509.                  and all recipients of the specified message.  The default
  510.                  message must not be deleted.
  511.  
  512.      rrrreeeessssppppoooonnnndddd     (rrrreeeessss) A synonym for RRRReeeeppppllllyyyy.
  513.  
  514.      ssssaaaavvvveeee        (ssss) Takes a message list and a filename and appends each
  515.                  message in turn to the end of the file.  The filename in
  516.                  quotes, followed by the line count and character count is
  517.                  echoed on the user's terminal. If filename does not already
  518.                  exist it will be created.  If filename begins with a ``|'' or
  519.                  ``!'' then it will be interpreted as a shell command and the
  520.                  contents of the messages passed to it on standard input.
  521.  
  522.  
  523.  
  524.  
  525.                                                                         PPPPaaaaggggeeee 8888
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  533.  
  534.  
  535.  
  536.      SSSSaaaavvvveeee        (SSSS) Takes a message list and appends each message in a file
  537.                  whose name is derived from the author of the first message.
  538.                  See also the _CCCC_oooo_pppp_yyyy, _ffff_oooo_llll_llll_oooo_wwww_uuuu_pppp and _FFFF_oooo_llll_llll_oooo_wwww_uuuu_pppp commands and
  539.                  _oooo_uuuu_tttt_ffff_oooo_llll_dddd_eeee_rrrr variable.
  540.  
  541.      sssseeeetttt         (sssseeee) With no arguments, prints all variable values.
  542.                  Otherwise, sets option.  Arguments are of the form
  543.                  ``option=value'' or ``option.''
  544.  
  545.      sssshhhheeeellllllll       (sssshhhh) Invokes an interactive version of the shell.
  546.  
  547.      ssssiiiizzzzeeee        (ssssiiii) Takes a message list and prints out the size in
  548.                  characters of each message.
  549.  
  550.      ssssoooouuuurrrrcccceeee      (ssssoooo) The ssssoooouuuurrrrcccceeee command reads _m_a_i_l_x commands from a file.
  551.  
  552.      ttttoooopppp         (ttttoooo) Takes a message list and prints the top few lines of
  553.                  each.  The number of lines printed is controlled by the
  554.                  variable ttttoooopppplllliiiinnnneeeessss and defaults to five.
  555.  
  556.      ttttoooouuuucccchhhh       (ttttoooouuuu) Takes a message list and causes each message therein to
  557.                  be saved in either the user's system mailbox or in _m_b_o_x
  558.                  according to the state of the _h_o_l_d option.
  559.  
  560.      ttttyyyyppppeeee        (tttt) A synonym for pppprrrriiiinnnntttt.
  561.  
  562.      uuuunnnnddddeeeelllleeeetttteeee    (uuuu) Takes a message list and marks each one as _n_o_t being
  563.                  deleted.
  564.  
  565.      uuuunnnnrrrreeeeaaaadddd      (uuuunnnnrrrr or UUUU) Takes a message list and marks each message as _n_o_t
  566.                  having been read.  Also see the UUUUnnnnrrrreeeeaaaadddd command.
  567.  
  568.      uuuunnnnsssseeeetttt       Takes a list of option names and discards their remembered
  569.                  values; the inverse of sssseeeetttt.
  570.  
  571.      vvvveeeerrrrssssiiiioooonnnn     (vvvveeee) Prints the version number of mailx that you are using.
  572.  
  573.      vvvviiiissssuuuuaaaallll      (vvvv) Takes a message list and invokes the display editor on
  574.                  each message.
  575.  
  576.      wwwwrrrriiiitttteeee       (wwww) Like ssssaaaavvvveeee except that the message header and the blank
  577.                  line after the message body are not appended to the file.
  578.                  Only the message body of each message is appended to the
  579.                  file.
  580.  
  581.      xxxxiiiitttt         (xxxx) A synonym for eeeexxxxiiiitttt.
  582.  
  583.      zzzz           _m_a_i_l_x presents message summary lines in windowfuls as
  584.                  described under the hhhheeeeaaaaddddeeeerrrr command. You can move _m_a_i_l_x's
  585.                  attention forward to the next window with the zzzz command.
  586.                  Also, you can move to the previous window by using zzzz----.
  587.  
  588.  
  589.  
  590.  
  591.                                                                         PPPPaaaaggggeeee 9999
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  599.  
  600.  
  601.  
  602.      Here is a summary of the tilde escapes, which are used when composing
  603.      messages to perform special functions.  Tilde escapes are only recognized
  604.      at the beginning of lines.  The name ``tilde escape'' is somewhat of a
  605.      misnomer since the actual escape character can be set via the eeeessssccccaaaappppeeee
  606.      option.
  607.  
  608.      ~~~~!!!! _c_o_m_m_a_n_d     Execute the indicated shell _c_o_m_m_a_n_d, then return to the
  609.                     message.
  610.  
  611.      ~~~~:::: _c_o_m_m_a_n_d     Execute the indicated _m_a_i_l_x _c_o_m_m_a_n_d, then return to the
  612.                     message.
  613.  
  614.      ~~~~????             Display the tilde escape help file.
  615.  
  616.      ~~~~bbbb _n_a_m_e ...    Add the given _n_a_m_es to the list of blind carbon copy
  617.                     (``Bcc:'') recipients.
  618.  
  619.      ~~~~cccc _n_a_m_e ...    Add the given _n_a_m_es to the list of carbon copy (``Cc:'')
  620.                     recipients.
  621.  
  622.      ~~~~ccccmmmm _s_t_r_i_n_g     Cause the _s_t_r_i_n_g to become the current ``Comments:''
  623.                     field.
  624.  
  625.      ~~~~dddd             Read the file ``dead.letter'' from your home directory
  626.                     into the message.
  627.  
  628.      ~~~~EEEE             Invoke the text editor on the entire message collected so
  629.                     far including the message header fields.  The existing
  630.                     message header fields will be displayed above a dashed
  631.                     line and the existing message body will be displayed below
  632.                     the dashed line.  You are free to edit the message headers
  633.                     and body at will, but you must be careful that the final
  634.                     format of the headers conforms to the RFC 822 standard.
  635.                     You must also take care that no blank lines appear within
  636.                     the header section of the message and that you do not
  637.                     remove the dashed line separating the message headers from
  638.                     the message body.  After the editing session is finished,
  639.                     you may continue appending text to the message.
  640.  
  641.      ~~~~eeee             Invoke the text editor on the body of the message
  642.                     collected so far.  After the editing session is finished,
  643.                     you may continue appending text to the message.
  644.  
  645.      ~~~~eeeehhhh            Same as ~~~~EEEE above.
  646.  
  647.      ~~~~eeeennnn _s_t_r_i_n_g     Cause the _s_t_r_i_n_g to become the current ``Encrypted:''
  648.                     field.
  649.  
  650.      ~~~~ffff _m_e_s_s_a_g_e_s    Read the named _m_e_s_s_a_g_e_s into the message being sent.  If
  651.                     no _m_e_s_s_a_g_e_s are specified, read in the current message.
  652.  
  653.  
  654.  
  655.  
  656.  
  657.                                                                        PPPPaaaaggggeeee 11110000
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  665.  
  666.  
  667.  
  668.      ~~~~HHHH             Edit all standard message header fields by typing each one
  669.                     in turn and allowing the user to append text to the end or
  670.                     modify the field by using the current terminal erase and
  671.                     kill characters.
  672.  
  673.      ~~~~hhhh             Edit the basic message header fields (To:, Subject:, Cc:,
  674.                     Bcc:) by typing each one in turn and allowing the user to
  675.                     append text to the end or modify the field by using the
  676.                     current terminal erase and kill characters.
  677.  
  678.      ~~~~iiiirrrrtttt _s_t_r_i_n_g    Add the _s_t_r_i_n_g to the ``In-Reply-To:'' list.
  679.  
  680.      ~~~~kkkk _s_t_r_i_n_g      Add the _s_t_r_i_n_g to the ``Keywords:'' list.
  681.  
  682.      ~~~~mmmm _m_e_s_s_a_g_e_s    Read the named _m_e_s_s_a_g_e_s into the message being sent
  683.                     shifted right one tab.  Note that if the _m_p_r_e_f_i_x option is
  684.                     set (see below), the tab will be replaced with the
  685.                     specified string.  If no _m_e_s_s_a_g_e_s are specified, read the
  686.                     current message.
  687.  
  688.      ~~~~pppp             Print out the message collected so far.  First the message
  689.                     header fields are displayed followed by a dashed line
  690.                     separator, then the message body.
  691.  
  692.      ~~~~qqqq             Abort the message being sent, copying the message to
  693.                     ``dead.letter'' in your home directory.
  694.  
  695.      ~~~~rrrr _f_i_l_e        Read the named _f_i_l_e into the message.
  696.  
  697.      ~~~~rrrrffff _s_t_r_i_n_g     Add the _s_t_r_i_n_g to the ``References:'' list.
  698.  
  699.      ~~~~rrrrrrrr [_s_t_r_i_n_g]   Cause a ``Return-Receipt-To:'' field to be added to the
  700.                     message.  If the _s_t_r_i_n_g is specified, it will be added to
  701.                     the list of recipients in the ``Return-Receipt-To:''
  702.                     field.  If the _s_t_r_i_n_g is not specified and no ``Return-
  703.                     Receipt-To:'' field exists in the message, one will be
  704.                     created and your user name will be specified.  If the
  705.                     _s_t_r_i_n_g is not specified and a ``Return-Receipt-To:'' field
  706.                     already exists in the message, the entire field will be
  707.                     removed.
  708.  
  709.                     If the ``Return-Receipt-To:'' header field is present when
  710.                     the message is sent, and if the intervening mail delivery
  711.                     system supports return receipts, a return receipt will be
  712.                     sent to your mailbox when the message is successfully
  713.                     delivered to each of the specified recipients.
  714.  
  715.      ~~~~rrrrtttt _n_a_m_e ...   Add the given _n_a_m_es to the ``Reply-To:'' list.
  716.  
  717.      ~~~~ssss _s_t_r_i_n_g      Cause the _s_t_r_i_n_g to become the current ``Subject:'' field.
  718.  
  719.  
  720.  
  721.  
  722.  
  723.                                                                        PPPPaaaaggggeeee 11111111
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  731.  
  732.  
  733.  
  734.      ~~~~tttt _n_a_m_e ...    Add the given _n_a_m_es to the direct recipients (``To:'')
  735.                     list.
  736.  
  737.      ~~~~VVVV             Invoke an alternate editor (defined by the _V_I_S_U_A_L option)
  738.                     on the entire message collected so far including the
  739.                     message header fields.  The existing message header fields
  740.                     will be displayed above a dashed line and the existing
  741.                     message body will be displayed below the dashed line.  You
  742.                     are free to edit the message headers and body at will, but
  743.                     you must be careful that the final format of the headers
  744.                     conforms to the RFC 822 standard.  You must also take care
  745.                     that no blank lines appear within the header section of
  746.                     the message and that you do not remove the dashed line
  747.                     separating the message headers from the message body.
  748.                     After the editing session is finished, you may continue
  749.                     appending text to the message.
  750.  
  751.      ~~~~vvvv             Invoke an alternate editor (defined by the _V_I_S_U_A_L option)
  752.                     on the body of the message collected so far.  Usually, the
  753.                     alternate editor will be a screen editor.  After you quit
  754.                     the editor, you may resume appending text to the end of
  755.                     your message.
  756.  
  757.      ~~~~vvvvhhhh            Same as ~~~~VVVV above.
  758.  
  759.      ~~~~wwww _f_i_l_e        Write the message onto the named _f_i_l_e.
  760.  
  761.      ~~~~||||_c_o_m_m_a_n_d      Pipe the message through the _c_o_m_m_a_n_d as a filter.  If the
  762.                     command gives no output or terminates abnormally, retain
  763.                     the original text of the message.  The command _f_m_t(1) is
  764.                     often used as _c_o_m_m_a_n_d to rejustify the message.
  765.  
  766.      ~~~~~~~~_s_t_r_i_n_g       Insert the _s_t_r_i_n_g into the message prefaced by a single ~.
  767.                     If you have changed the escape character, then you should
  768.                     double that character in order to send it.
  769.  
  770.      Options are controlled via the sssseeeetttt and uuuunnnnsssseeeetttt commands.  Options may be
  771.      either binary, in which case it is only significant to see whether they
  772.      are set or not, or string, in which case the actual value is of interest.
  773.      The binary options include the following:
  774.  
  775.      RRRReeeeppppllllyyyyaaaallllllll       Swaps the behavior of the rrrr////RRRReeeeppppllllyyyy////RRRReeeessssppppoooonnnndddd and rrrraaaa////RRRReeeeppppllllyyyyaaaallllllll
  776.                     commands resulting in a more BSD-like interface.
  777.  
  778.      aaaappppppppeeeennnndddd         Causes messages saved in _m_b_o_x to be appended to the end
  779.                     rather than prepended.  (This is set in /usr/lib/Mail.rc
  780.                     on version 7 systems.)
  781.  
  782.      aaaasssskkkk////aaaasssskkkkssssuuuubbbb     Prompt for a subject line on outgoing mail if one is not
  783.                     specified on the command line with the ----ssss option. The aaaasssskkkk
  784.                     and aaaasssskkkkssssuuuubbbb forms are synonyms; the system will refer to
  785.                     aaaasssskkkkssssuuuubbbb and nnnnooooaaaasssskkkkssssuuuubbbb in its messages, but will accept aaaasssskkkk
  786.  
  787.  
  788.  
  789.                                                                        PPPPaaaaggggeeee 11112222
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  797.  
  798.  
  799.  
  800.                     and nnnnooooaaaasssskkkk as user input to mean aaaasssskkkkssssuuuubbbb and nnnnooooaaaasssskkkkssssuuuubbbb.... It is
  801.                     not possible to set both aaaasssskkkk and nnnnooooaaaasssskkkkssssuuuubbbb,,,, or nnnnooooaaaasssskkkk and
  802.                     aaaasssskkkkssssuuuubbbb aaaasssskkkkssssuuuubbbb,,,, but no prompting will be done if standard
  803.                     input is not a terminal.
  804.  
  805.      aaaasssskkkkbbbbcccccccc         Prompt for the blind copy list.  The default is nnnnooooaaaasssskkkkbbbbcccccccc....
  806.  
  807.      aaaasssskkkkcccccccc          Causes you to be prompted for additional carbon copy
  808.                     recipients at the end of each message.  Responding with a
  809.                     newline indicates your satisfaction with the current list.
  810.                     The default is nnnnooooaaaasssskkkkcccccccc....
  811.  
  812.      aaaauuuuttttoooopppprrrriiiinnnntttt      Causes the ddddeeeelllleeeetttteeee command to behave like ddddpppp - thus, after
  813.                     deleting a message, the next one will be typed
  814.                     automatically.
  815.  
  816.      bbbbaaaannnngggg           Enable the special-case treatment of exclamation-marks (!)
  817.                     in escape command lines; see the eeeessssccccaaaappppeeee command.  The
  818.                     default is nnnnoooobbbbaaaannnngggg,,,, disabling the expansion of ! in the
  819.                     _c_o_m_m_a_n_d argument to the !_c_o_m_m_a_n_d and the <!_c_o_m_m_a_n_d escape.
  820.  
  821.      ccccmmmmdddd=_c_o_m_m_a_n_d    Set the default command to be invoked by the ppppiiiippppeeee command.
  822.                     The default is nnnnooooccccmmmmdddd....
  823.  
  824.      ccccrrrrtttt=_n_u_m_b_e_r     Pipe messages having more than _n_u_m_b_e_r lines through the
  825.                     command specified by the value of the _P_A_G_E_R variable.  The
  826.                     default is nnnnooooccccrrrrtttt.... If it is set to null, the value is set
  827.                     to the current window size.
  828.  
  829.      ddddeeeebbbbuuuugggg          Enable verbose diagnostics for debugging. Messages are not
  830.                     delivered. The default is nnnnooooddddeeeebbbbuuuugggg....
  831.  
  832.      ddddooootttt            The binary option _d_o_t causes _m_a_i_l_x to interpret a period
  833.                     alone on a line as the terminator of a message you are
  834.                     sending.  When ddddooootttt is set, a period on a line by itself
  835.                     during message input from a terminal also signifies end-
  836.                     of-file (in addition to normal end-of-file). The default
  837.                     is nnnnooooddddooootttt.... If iiiiggggnnnnoooorrrreeeeeeeeooooffff is set (see below), a setting of
  838.                     nnnnooooddddooootttt will be ignored and the period is the only method to
  839.                     terminate input mode.
  840.  
  841.      fffflllliiiipppprrrr          Reverse the meanings of the RRRR and rrrr commands. The default
  842.                     is nnnnoooofffflllliiiipppprrrr....
  843.  
  844.      hhhhoooolllldddd           This option is used to hold messages in the system mailbox
  845.                     (instead of _m_b_o_x ) by default.
  846.  
  847.      iiiiggggnnnnoooorrrreeee         Causes interrupt signals from your terminal to be ignored
  848.                     and echoed as @'s.
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.                                                                        PPPPaaaaggggeeee 11113333
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  863.  
  864.  
  865.  
  866.      iiiiggggnnnnoooorrrreeeeeeeeooooffff      Ignore normal control-D during message input. Input can be
  867.                     terminated only by entering a period (.) on a line by
  868.                     itself or by the nnnnooooiiiiggggnnnnoooorrrreeeeeeeeooooffff.... See also ddddooootttt above.
  869.  
  870.      kkkkeeeeeeeepppp           Prevents _m_a_i_l_x from deleting empty mailboxes when you
  871.                     quit.
  872.  
  873.      kkkkeeeeeeeeppppssssaaaavvvveeee       If set, messages which are saved via the ssssaaaavvvveeee command are
  874.                     _n_o_t deleted from the current mailbox automatically.
  875.  
  876.      mmmmeeeettttoooooooo          Usually, when a group is expanded that contains the
  877.                     sender, the sender is removed from the expansion.  Setting
  878.                     this option causes the sender to be included in the group.
  879.  
  880.      oooouuuuttttffffoooollllddddeeeerrrr      Cause the files used to record outgoing messages to be
  881.                     located in the directory specified by the ffffoooollllddddeeeerrrr variable
  882.                     unless the pathname is absolute. The default is
  883.                     nnnnoooooooouuuuttttffffoooollllddddeeeerrrr.... See the rrrreeeeccccoooorrrrdddd variable.
  884.  
  885.      nnnnooooaaaasssskkkkrrrroooolllloooocccckkkk    Normally, when _m_a_i_l_x encounters a mailfile which is read-
  886.                     only locked, it interactively asks the user how he wants
  887.                     to proceed.  This option causes _m_a_i_l_x to bypass the
  888.                     interactive dialog and automatically open the mailfile in
  889.                     read-only mode.  In order to select a different automatic
  890.                     behaviour, this option can be used as a valued option (see
  891.                     below).
  892.  
  893.      nnnnoooohhhheeeeaaaaddddeeeerrrr       Suppresses the printing of message summary lines when
  894.                     mailx is first invoked.
  895.  
  896.      nnnnoooossssaaaavvvveeee         Normally, when you abort a message with two RUBOUT, _m_a_i_l_x
  897.                     copies the partial letter to the file ``dead.letter'' in
  898.                     your home directory. Setting the binary option _n_o_s_a_v_e
  899.                     prevents this.
  900.  
  901.      ppppaaaaggggeeee           Insert a form-feed after each message sent through the
  902.                     pipe created by the ppppiiiippppeeee command. The default is nnnnooooppppaaaaggggeeee....
  903.  
  904.      pppprrrroooommmmpppptttt=_s_t_r_i_n_g  Set the command-mode prompt to _s_t_r_i_n_g. If _s_t_r_i_n_g is null
  905.                     or if nnnnoooopppprrrroooommmmpppptttt is set, no prompting will occur. The
  906.                     default is to prompt with the string "? ". qqqqmmmmaaaarrrrkkkkiiiisssshhhheeeellllpppp If
  907.                     set, ???? becomes a synonym for the hhhheeeellllpppp command.
  908.  
  909.      qqqquuuuiiiieeeetttt          Suppresses the printing of the version when mailx is first
  910.                     invoked.
  911.  
  912.      sssshhhhoooowwwwllllaaaasssstttt       If this option is set at the time when _m_a_i_l_x is first
  913.                     invoked, and if no new or unread messages are present in
  914.                     the system mailbox, _m_a_i_l_x will display the last windowful
  915.                     of summary lines first, and will set the current message
  916.                     to be the last message in the mailfile.  This option only
  917.                     makes sense when used with the _h_o_l_d option described
  918.  
  919.  
  920.  
  921.                                                                        PPPPaaaaggggeeee 11114444
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  929.  
  930.  
  931.  
  932.                     above.  The default is nnnnooooqqqquuuuiiiieeeetttt....
  933.  
  934.      sssshhhhoooowwwwmmmmssssiiiizzzzeeee      If this option is set, _m_a_i_l_x will include the line count
  935.                     and character count on the summary line for each message.
  936.  
  937.      sssshhhhoooowwwwttttoooo         Causes _m_a_i_l_x to display the recipient instead of sender
  938.                     when displaying the summary line of a message for which
  939.                     you were the sender (your user name appears in the From:
  940.                     header field).  This is useful when using _m_a_i_l_x to browse
  941.                     or edit a file of saved outgoing mail such as is created
  942.                     when the _r_e_c_o_r_d option is defined (see below).
  943.  
  944.      vvvveeeerrrrbbbboooosssseeee        Setting the option _v_e_r_b_o_s_e is the same as using the ----vvvv
  945.                     flag on the command line. When mail runs in verbose mode,
  946.                     the actual delivery of messages is displayed on the users
  947.                     terminal.
  948.  
  949.      The following options have string values:
  950.  
  951.      DDDDEEEEAAAADDDD           Determine the pathname of the file in which to save
  952.                     partial messages in case of interrupts or delivery errors.
  953.                     The default is ddddeeeeaaaadddd....lllleeeetttttttteeeerrrr in the directory named by the
  954.                     _H_O_M_E variable.
  955.  
  956.      EEEEDDDDIIIITTTTOOOORRRR         Pathname of the text editor to use in the eeeeddddiiiitttt command and
  957.                     and ~~~~eeeehhhh escapes.  This defaults to the value of the _E_D_I_T_O_R
  958.                     environment variable.
  959.  
  960.      HHHHOOOOMMMMEEEE           The pathname of your home directory.  This defaults to the
  961.                     value of the _H_O_M_E environment variable.
  962.  
  963.      LLLLIIIISSSSTTTTEEEERRRR         Determine a string representing the command for writing
  964.                     the contents of the ffffoooollllddddeeeerrrr directory to standard output
  965.                     when the ffffoooollllddddeeeerrrrssss command is given.   Any string acceptable
  966.                     as a _c_o_m_m_a_n_d__s_t_r_i_n_g operand to the _s_h ----cccc command is valid.
  967.                     If this variable is null or not set, the output command
  968.                     will be _l_s. The default value is unset.
  969.  
  970.      MMMMAAAAIIIILLLLRRRRCCCC         Determine the pathname of the start-up file. The default
  971.                     is ....mmmmaaaaiiiillllrrrrcccc in the _H_O_M_E directory.
  972.  
  973.      MMMMBBBBOOOOXXXX           Determine a pathname of the file to save messages from the
  974.                     system mailbox that have been read. The eeeexxxxiiiitttt command
  975.                     overrides this function, as will saving the message
  976.                     explicitly in another file. The default is mmmmbbbbooooxxxx in the
  977.                     directory named by the _H_O_M_E variable.
  978.  
  979.      PPPPAAAAGGGGEEEERRRR          Pathname of your pager to use in the MMMMoooorrrreeee or mmmmoooorrrreeee
  980.                     commands, or if the _c_r_t option is selected.  If not
  981.                     defined, this defaults to the value of the _P_A_G_E_R
  982.                     environment variable.  If the _P_A_G_E_R environment variable
  983.                     is not defined either, then _m_o_r_e(1) is the default.
  984.  
  985.  
  986.  
  987.                                                                        PPPPaaaaggggeeee 11115555
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  995.  
  996.  
  997.  
  998.      SSSSHHHHEEEELLLLLLLL          Pathname of the shell to use in the !!!! command and the ~!
  999.                     escape.  This defaults to the value of the _S_H_E_L_L
  1000.                     environment variable.
  1001.  
  1002.      TTTTMMMMPPPPDDDDIIIIRRRR         The directory to use for temporary files.  This defaults
  1003.                     to the value of the _T_M_P_D_I_R environment variable.  If the
  1004.                     _T_M_P_D_I_R environment variable is not defined either, then
  1005.                     /_t_m_p is the default.
  1006.  
  1007.      VVVVIIIISSSSUUUUAAAALLLL         Pathname of the text editor to use in the vvvviiiissssuuuuaaaallll command
  1008.                     and ~~~~vvvv and ~~~~vvvvhhhh escapes.  If this variable is null or not
  1009.                     set, the full-screen editor will be vvvviiii....
  1010.  
  1011.      ccccoooommmmmmmmaaaannnndddd::::       Allows the user to ``alias'' commands.  Syntax is:
  1012.  
  1013.                          set command:_x=_y
  1014.  
  1015.                     Where _x is a new name for the command and _y is the
  1016.                     original command.  For example:
  1017.  
  1018.                          set command:ls=header
  1019.  
  1020.                     defines a new command ``ls'' which is equivalent to the
  1021.                     existing ``header'' command.
  1022.  
  1023.      ccccrrrrtttt            If _c_r_t is used as a valued option (see above for a
  1024.                     description of how _c_r_t is used as a binary option), it is
  1025.                     used as a threshold to determine how long a message must
  1026.                     be before the user's pager is used to read it.  In effect,
  1027.                     this allows the user to override the current window size
  1028.                     which would be used in the case of the binary _c_r_t option.
  1029.  
  1030.      eeeessssccccaaaappppeeee         If defined, the first character of this option gives the
  1031.                     character to use in the place of ~ to denote escapes.
  1032.  
  1033.      ffffoooollllddddeeeerrrr=_d_i_r_e_c_t_o_r_y
  1034.                     The default directory for saving mail files. User-
  1035.                     specified filenames beginning with a plus sign (+) will be
  1036.                     expanded by preceding the filename with this directory
  1037.                     name to obtain the real pathname. If _d_i_r_e_c_t_o_r_y does not
  1038.                     start with a slash (/), the contents of _H_O_M_E will be
  1039.                     prefixed to it. The default is nnnnooooffffoooollllddddeeeerrrr.... If ffffoooollllddddeeeerrrr is
  1040.                     unset or set to null, user-specified filenames beginning
  1041.                     with ++++ refer to files in the current directory that begin
  1042.                     with the literal ++++ character. See also oooouuuuttttffffoooollllddddeeeerrrr below.
  1043.                     The ffffoooollllddddeeeerrrr value need not affect the processing of the
  1044.                     files named in _M_B_O_X and _D_E_A_D.
  1045.  
  1046.      iiiinnnnddddeeeennnnttttpppprrrreeeeffffiiiixxxx=_s_t_r_i_n_g
  1047.                     If defined, gives the string which will be prepended to
  1048.                     each inserted line when using the ~~~~mmmm command to insert
  1049.                     text from a previous message into the current message
  1050.  
  1051.  
  1052.  
  1053.                                                                        PPPPaaaaggggeeee 11116666
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  1061.  
  1062.  
  1063.  
  1064.                     being composed.  If not defined a tab will be the default.
  1065.  
  1066.      nnnnooooaaaasssskkkkrrrroooolllloooocccckkkk    Normally, when _m_a_i_l_x encounters a mailfile which is read-
  1067.                     only locked, it interactively asks the user how he wants
  1068.                     to proceed.  This option causes _m_a_i_l_x to bypass the
  1069.                     interactive dialog and automatically proceed as follows:
  1070.  
  1071.                     If set to "R" or "r", _m_a_i_l_x will open the mailfile read-
  1072.                     only.
  1073.  
  1074.                     If set to "W" or "w", _m_a_i_l_x will forcibly acquire the lock
  1075.                     and open the mailfile read-write.
  1076.  
  1077.      rrrreeeeccccoooorrrrdddd         If defined, gives the pathname of the file used to record
  1078.                     all outgoing mail.  If not defined, then outgoing mail is
  1079.                     not so saved.  The default is nnnnooooqqqquuuuiiiieeeetttt....
  1080.  
  1081.      rrrreeeeppppllllyyyyttttoooo        If defined, gives the address which should be entered into
  1082.                     the Reply-To: header field for all outgoing mail.
  1083.  
  1084.      ssssaaaavvvveeee           Enable saving of messages in the dead-letter file on
  1085.                     interrupt or delivery error. See the variable _D_E_A_D for the
  1086.                     location of the dead-letter file. The default is ssssaaaavvvveeee....
  1087.  
  1088.      sssseeeennnnddddmmmmaaaaiiiillll       If defined, gives the full pathname of the mail transfer
  1089.                     agent program to use to send mail.  If not set,
  1090.                     /_u_s_r/_l_i_b/_s_e_n_d_m_a_i_l will be used.  It is usually unnecessary
  1091.                     to set this option.
  1092.  
  1093.      ssssiiiiggggnnnn=_s_t_r_i_n_g    Set the variable inserted into the text of a message when
  1094.                     the aaaa command escape is given. The default is nnnnoooossssiiiiggggnnnn.... The
  1095.                     character sequences _\\\\_tttt and _\\\\_nnnn are recognized in the
  1096.                     variable as tab and newline characters, respectively.
  1097.  
  1098.      SSSSiiiiggggnnnn=_s_t_r_i_n_g    Set the variable inserted into the text of a message when
  1099.                     the A command escape is given. The default is _nnnn_oooo_SSSS_iiii_gggg_nnnn. The
  1100.                     character sequences _\\\\_tttt and _\\\\_nnnn will be recognized in the
  1101.                     variable as tab and newline characters, respectively.
  1102.  
  1103.      ttttoooopppplllliiiinnnneeeessss       If defined, gives the number of lines of a message to be
  1104.                     printed out with the ttttoooopppp command; normally, the first five
  1105.                     lines are printed.
  1106.  
  1107. FFFFIIIILLLLEEEESSSS
  1108.      $HOME/mbox               Your saved mail (unless the hhhhoooolllldddd option is set).
  1109.  
  1110.      $HOME/dead.letter        File where the text of the last aborted message
  1111.                               will be saved (unless the nnnnoooossssaaaavvvveeee option is set).
  1112.                               Note that in the event of a delivery failure,
  1113.                               _s_e_n_d_m_a_i_l may append the failed message to
  1114.                               ``dead.letter.''  This may result in multiple
  1115.                               messages being present in ``dead.letter.''
  1116.  
  1117.  
  1118.  
  1119.                                                                        PPPPaaaaggggeeee 11117777
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  1127.  
  1128.  
  1129.  
  1130.      $HOME/.mailrc            File giving initial mail commands.
  1131.  
  1132.      $HOME/.lsignature        File to append to outgoing local mail.
  1133.  
  1134.      $HOME/.rsignature        File to append to outgoing remote mail.
  1135.  
  1136.      $HOME/.signature         File to append to outgoing mail if .lsignature
  1137.                               and .rsignature do not exist.
  1138.  
  1139.      $TMPDIR/R*               Misc. temporary files.
  1140.  
  1141.      $TMPDIR/Message*         Temporary editor files.
  1142.  
  1143.      /usr/mail/*              System mail directory.
  1144.  
  1145.      /usr/mail/_u_s_e_r           System mailbox for _u_s_e_r.
  1146.  
  1147.      /usr/mail/_u_s_e_r.lock      Lock for _u_s_e_r's mailbox.
  1148.  
  1149.      /usr/mail/_u_s_e_r.rolock    Read-only lock for _u_s_e_r's mailbox.  Used to
  1150.                               prevent file contention between multiple mailx
  1151.                               instances.
  1152.  
  1153.      /usr/lib/mailx.help*     Help files.
  1154.  
  1155.      /usr/lib/Mail.rc         System initialization file.
  1156.  
  1157.      /usr/sbin/mailx          mailx program.
  1158.  
  1159. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  1160.      mail_att(1), mail_bsd(1), sendmail(1M).
  1161.      Internet RFC 822 - Standard for the Format of Internet Text Messages.
  1162.  
  1163. WWWWAAAARRRRNNNNIIIINNNNGGGGSSSS
  1164.      _m_a_i_l_x recognizes and acts upon tilde escapes in the body of the message
  1165.      being collected on standard input regardless of whether or not standard
  1166.      input is connected to a tty.  If you redirect _m_a_i_l_x '_s standard input to
  1167.      come from a file or pipe:
  1168.  
  1169.           mailx someuser < msgfile
  1170.  
  1171.      or
  1172.  
  1173.           cat msgfile | mailx someuser
  1174.  
  1175.      you must take care to insure that no line of msgfile inadvertently begins
  1176.      with a '~' character or _m_a_i_l_x will produce unwanted results.  Note that
  1177.      there is nothing wrong with imbedding tilde escapes in the body of such a
  1178.      msgfile provided you know what you are doing.  Such imbedded tilde
  1179.      escapes are useful for setting the Cc: list, arranging return receipts,
  1180.      and performing other functions not available via command line options.
  1181.  
  1182.  
  1183.  
  1184.  
  1185.                                                                        PPPPaaaaggggeeee 11118888
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192. MMMMAAAAIIIILLLLXXXX((((1111))))                                                              MMMMAAAAIIIILLLLXXXX((((1111))))
  1193.  
  1194.  
  1195.  
  1196. BBBBUUUUGGGGSSSS
  1197.      There are many flags that are not documented here. Most are not useful to
  1198.      the general user.
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.                                                                        PPPPaaaaggggeeee 11119999
  1252.  
  1253.  
  1254.  
  1255.